module.exports = {
  devServer: {
    proxy: {
      //配置多个跨域
      "/submit": {
        target: "http://localhost:9602/",
        changeOrigin: true,
        // ws: true,//websocket支持
        secure: false,
        pathRewrite: {
          "^/submit": "/submit"
        }
      },
      "/nc_search": {
        target: "http://localhost:9602/nc_search",
        changeOrigin: true,
        //ws: true,//websocket支持
        secure: false,
        pathRewrite: {
          "^/nc_search": ""
        }
      },
      "/getinfo": {
        target: "http://localhost:9602/getinfo",
        changeOrigin: true,
        //ws: true,//websocket支持
        secure: false,
        pathRewrite: {
          "^/getinfo": ""
        }
      }
    }
  }
};
